<template>
  <div>
    <span>自定义input内部</span>
    <input type="text" v-model="value" />
  </div>
</template>

<script>
export default {
  props: ["modelValue"],
  computed: {
    value: {
      get() {
        return this.modelValue;
      },
      set(value) {
        this.$emit("update:model-value", value);
      },
    },
  },
};
</script>

<style>
</style>